window: Improve detection of edge constraint support
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Mon, 18 Sep 2017 02:09:10 +0000 (23:09 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Mon, 18 Sep 2017 02:16:48 +0000 (23:16 -0300)
commit0bdaebef1ebfc9ff221ed0222c67378da3814856
treec39be342ad7f98bcb82dc10c5e07c0c3515b2719
parentb1c4e9afef5144b3c55a7be22b01c38cdf0088a7
window: Improve detection of edge constraint support

Instead of relying on special values of edge constraints, this
patch adds an internal-only gdk_window_supports_edge_constraints()
function that by default returns FALSE, and is implemented by
GdkWindowWayland and GdkWindowX11.

This way, we can properly detect server-side support for this
feature and adapt accordingly.

https://bugzilla.gnome.org/show_bug.cgi?id=783669
gdk/gdk-private.h
gdk/gdkwindow.c
gdk/gdkwindowimpl.h
gdk/wayland/gdkwindow-wayland.c
gdk/x11/gdkdisplay-x11.c
gdk/x11/gdkwindow-x11.c
gtk/gtkwindow.c